﻿using FreeSql.DataAnnotations;
using IMES.Common.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IMES.Common.Domain.DurianModel
{
    /// <summary>
    /// 任务
    /// </summary>
    public class Tasks : Audit
    {
        /// <summary>
        /// 任务编号
        /// </summary>
        [Column(IsIdentity = true, IsPrimary = true)]
        public int TasksId { get; set; }
        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime PlanneStartTime { get; set; }
        /// <summary>
        /// 计划结束时间
        /// </summary>
        public DateTime PlanneEndTime { get; set; }
        /// <summary>
        /// 计划数
        /// </summary>
        public int PlannedNumber { get; set; }
        /// <summary>
        /// 良品数
        /// </summary>
        public int GoodScore { get; set; }
        /// <summary>
        /// 不良品数
        /// </summary>
        public int DefectiveQuantity { get; set; }
        /// <summary>
        /// 实际开始时间
        /// </summary>
        public DateTime ActualStartTime { get; set; }
        /// <summary>
        /// 实际结束时间
        /// </summary>
        public DateTime ActualEndTime { get; set; }
        /// <summary>
        /// 工序管理编号
        /// </summary>
        public int ProcessID { get; set; }
        /// <summary>
        /// 逻辑删
        /// </summary>
        public bool Deletes { get; set; } = false;
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }
    }
}
